﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="register.ascx.cs" Inherits="eDream.Page.register" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>

<div style="width: 100%; margin-top: 5px; height: 100%">
    <div class="detail_regiter">
        <br />
        <div class="clear"></div>
        <div class="create_acount">

            <div class="clear"></div>

            <div class="contentextregister">
                Tên đăng nhập
            </div>
            <div class="contentext2">
                <dx:ASPxTextBox ID="txtUserName" runat="server" Width="200px" Theme="DevEx" MaxLength="50">
                    <ValidationSettings Display="Dynamic" ValidateOnLeave="true" ValidationGroup="g1"
                        RequiredField-IsRequired="true" RequiredField-ErrorText="Bạn chưa nhập tên đăng nhập">
                        <RegularExpression ErrorText="Tên đăng nhập phải từ 5 ký tự trở lên"
                            ValidationExpression="[^\s]{5,50}" />
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </div>

            <div class="clear"></div>
            <div class="contentextregister">
                Mật khẩu
            </div>

            <div class="contentext2">
                <dx:ASPxTextBox ID="txtPass1" runat="server" Width="200px" Theme="DevEx" MaxLength="50" ClientInstanceName="txtPass1">
                    <ValidationSettings Display="Dynamic" ValidateOnLeave="true" ValidationGroup="g1"
                        RequiredField-IsRequired="true" RequiredField-ErrorText="Bạn chưa nhập tên đăng nhập">
                        <RegularExpression ErrorText="Mật khẩu phải từ 6 ký tự trở lên"
                            ValidationExpression="[^\s]{6,50}" />
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </div>

            <div class="clear"></div>

            <div class="contentextregister">
                Họ và chữ lót
            </div>
            <div class="contentext2">
                <dx:ASPxTextBox ID="txtLassname" runat="server" Width="200px" Theme="DevEx" MaxLength="50">
                    <ValidationSettings Display="Dynamic" ValidateOnLeave="true" ValidationGroup="g1"
                        RequiredField-IsRequired="true" RequiredField-ErrorText="Bạn chưa nhập họ và chữ lót">
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </div>
            <div class="clear"></div>
            <div class="contentextregister">
                Tên
            </div>
            <div class="contentext2">
                <dx:ASPxTextBox ID="txtFirstname" runat="server" Width="200px" Theme="DevEx" MaxLength="50">
                    <ValidationSettings Display="Dynamic" ValidateOnLeave="true" ValidationGroup="g1"
                        RequiredField-IsRequired="true" RequiredField-ErrorText="Bạn chưa nhập Tên">
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </div>
            <div class="clear"></div>
            <div class="contentextregister">
                Email
            </div>
            <div class="contentext2">
                <dx:ASPxTextBox ID="txtEmail" runat="server" Width="200px" Theme="DevEx" MaxLength="50">
                    <ValidationSettings Display="Dynamic" ValidateOnLeave="true" ValidationGroup="g1"
                        RequiredField-IsRequired="true" RequiredField-ErrorText="Bạn chưa nhập email">
                        <RegularExpression ErrorText="Email không hợp lệ"
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </div>
            <div class="clear"></div>
            <div class="contentextregister">
                Điện thoại
            </div>
            <div class="contentext2">
                <dx:ASPxTextBox ID="txtDienthoai" runat="server" Width="100px" Theme="DevEx" MaxLength="12">
                    <ValidationSettings Display="Dynamic" ValidateOnLeave="true" ValidationGroup="g1"
                        RequiredField-IsRequired="true" RequiredField-ErrorText="Bạn chưa nhập điện thoại">
                        <RegularExpression ErrorText="Điện thoại không hợp lệ"
                            ValidationExpression="0\d{9,10}" />
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </div>
            <div class="clear"></div>

            <div class="contentextregister">
                Địa chỉ
            </div>
            <div class="contentext2">
                <dx:ASPxTextBox ID="txtDiachi" runat="server" Width="300px" Theme="DevEx" MaxLength="200">
                    <ValidationSettings Display="Dynamic" ValidateOnLeave="true" ValidationGroup="g1"
                        RequiredField-IsRequired="true" RequiredField-ErrorText="Bạn chưa nhập địa chỉ">
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </div>

            <div class="clear"></div>
            <div class="contentextregister">
                Giới tính
            </div>
            <div class="contentext2">
                <dx:ASPxComboBox ID="cbGioitinh" runat="server" ValueType="System.String" Theme="DevEx">
                    <Items>
                        <dx:ListEditItem Text="Nam" Value="0" />
                        <dx:ListEditItem Text="Nữ" Value="1" />
                    </Items>
                </dx:ASPxComboBox>
            </div>
            <div class="clear"></div>
            <div class="contentextregister">
                Ngày sinh
            </div>
            <div class="context50">
                <dx:ASPxComboBox ID="cbNgay" runat="server" ValueType="System.String" Width="60px" Theme="DevEx">
                    <Items>
                        <dx:ListEditItem Text="01" Value="1" />
                        <dx:ListEditItem Text="02" Value="2" />
                        <dx:ListEditItem Text="03" Value="3" />
                        <dx:ListEditItem Text="04" Value="4" />
                        <dx:ListEditItem Text="05" Value="5" />
                        <dx:ListEditItem Text="06" Value="6" />
                        <dx:ListEditItem Text="07" Value="7" />
                        <dx:ListEditItem Text="08" Value="8" />
                        <dx:ListEditItem Text="09" Value="9" />
                        <dx:ListEditItem Text="10" Value="10" />
                        <dx:ListEditItem Text="11" Value="11" />
                        <dx:ListEditItem Text="12" Value="12" />
                        <dx:ListEditItem Text="13" Value="13" />
                        <dx:ListEditItem Text="14" Value="14" />
                        <dx:ListEditItem Text="15" Value="15" />
                        <dx:ListEditItem Text="16" Value="16" />
                        <dx:ListEditItem Text="17" Value="17" />
                        <dx:ListEditItem Text="18" Value="18" />
                        <dx:ListEditItem Text="19" Value="19" />
                        <dx:ListEditItem Text="20" Value="20" />
                        <dx:ListEditItem Text="21" Value="21" />
                        <dx:ListEditItem Text="22" Value="22" />
                        <dx:ListEditItem Text="23" Value="23" />
                        <dx:ListEditItem Text="24" Value="24" />
                        <dx:ListEditItem Text="25" Value="25" />
                        <dx:ListEditItem Text="26" Value="26" />
                        <dx:ListEditItem Text="27" Value="27" />
                        <dx:ListEditItem Text="28" Value="28" />
                        <dx:ListEditItem Text="29" Value="29" />
                        <dx:ListEditItem Text="30" Value="30" />
                        <dx:ListEditItem Text="31" Value="31" />
                    </Items>
                </dx:ASPxComboBox>
            </div>
            <div class="context5px">/</div>
            <div class="context50">
                <dx:ASPxComboBox ID="cbThang" runat="server" ValueType="System.String" Width="60px" Theme="DevEx">
                    <Items>
                        <dx:ListEditItem Text="01" Value="1" />
                        <dx:ListEditItem Text="02" Value="2" />
                        <dx:ListEditItem Text="03" Value="3" />
                        <dx:ListEditItem Text="04" Value="4" />
                        <dx:ListEditItem Text="05" Value="5" />
                        <dx:ListEditItem Text="06" Value="6" />
                        <dx:ListEditItem Text="07" Value="7" />
                        <dx:ListEditItem Text="08" Value="8" />
                        <dx:ListEditItem Text="09" Value="9" />
                        <dx:ListEditItem Text="10" Value="10" />
                        <dx:ListEditItem Text="11" Value="11" />
                        <dx:ListEditItem Text="12" Value="12" />
                    </Items>
                </dx:ASPxComboBox>
            </div>
            <div class="context5px">/</div>
            <div class="context50">
                <dx:ASPxComboBox ID="cbNam" runat="server" ValueType="System.String" Width="70px" Theme="DevEx">
                </dx:ASPxComboBox>
            </div>

            <div class="clear"></div>



            <div class="clear"></div>
            <div class="contentextregister">
            </div>
            <div class="contentext2">
                <dx:ASPxButton ID="btnSave" runat="server" Text="Đồng ý" Theme="iOS" ValidationGroup="g1" AutoPostBack="false" OnClick="btnSave_Click">
                </dx:ASPxButton>
            </div>
            <div class="clear"></div>
            <div class="contentextregister">
            </div>
            <div class="contentext2">
                <dx:ASPxLabel ID="lbthongbao" runat="server"></dx:ASPxLabel>
            </div>



            <div style="height: 10px; width: 100%"></div>


        </div>

    </div>

</div>
